{include file="common/top" /}
<style>
html{
	background: #ffffff;
}
</style>
<div class="layuimini-container">
	<div class="layui-col-xs12">
      <div class="layui-card">
        <div class="layui-card-header">账户退款原始数据</div>
        <div class="layui-card-body">
        	<table class="layui-table">
			  <tbody>
			    <tr>
			      <td width=12%>编号:</td>
			      <td>{$rs.code}</td>
			      <td width=12%>渠道:</td>
			      <td colspan="2">{$rs.channel_name}</td>
			      <td width=12%>账户:</td>
			      <td colspan="2">{$rs.account_name}</td>
			    </tr>
			    <tr>
			      <td>客户：</td>
			      <td>{$rs.customer_name}</td>
			      <td colspan="2">返点(客户/服务费/渠道)：</td>
			      <td colspan="4">{$rs.rebate}/ {$rs.service_pay}/ {$rs.channel_rebate}</td>
			    </tr>
			    <tr>
			      <td >账户币：</td>
			      <td>{$rs.currency}</td>
			      <td >客户金额：</td>
			      <td colspan="2">{$rs.amount}</td>
			      <td >渠道金额：</td>
			      <td>{$rs.channel_money}</td>
			    </tr>
			  </tbody>
			</table>
        </div>
      </div>
    </div>
	<div class="layui-col-xs12">
      <div class="layui-card">
        <div class="layui-card-header">账户退款新数据</div>
        <div class="layui-card-body">
			<form class="layui-form " action="" style="    background: #fff;">
				<table class="layui-table">
				  <tbody>
				    <tr>
				      <td width=12%>应退账户币：</td>
				      <td>{$rs.r_currency}</td>
				      <td width=12%>退客户金额：</td>
				      <td colspan="2">{$rs.r_money}</td>
				      <td width=12%>渠道退款：</td>
				      <td colspan="2">{$rs.r_channel_money}</td>
				    </tr>
				  </tbody>
				</table>
				<hr />
				<div class="layui-form-item">
					<div class="layui-input-block">
						<input type="hidden"  name="id" value="{$rs.id}">
						<button class="layui-btn "  lay-submit="" lay-filter="demo1">提交</button>
					</div>
				</div>
				
			</form>
        </div>
      </div>
    </div>
</div>

{include file="common/footer" /}
<script type="text/javascript" src="__static/js/man.js"></script>
<script>
	layui.use(['form', 'layedit', 'laydate','table'], function(){
		  var form = layui.form ,layer = layui.layer,table = layui.table ;
		  var money=0;
		  //监听提交
		  form.on('submit(demo1)', function(data){
			var articleFrom = data.field;
			layer.load(1, { shade : [ 0.5, '#676a6c' ] }); 
			$.post("{:url('kj_audit')}?t=json",articleFrom,function(data){
				layer.closeAll();
				if (data['code'] == 1) { 
					var index1 = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
					parent.layer.close(index1); //再执行关闭 
					//父页面数据 ，重新加载
					parent.get_apply(data['msg']);

				} else {
					layer.msg(data['msg'], { icon : 5 });
				}
			}); 
			
			return false;
		  });
		 
		  
	});
	
</script>
